﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ProductList.aspx.cs" Inherits="InfoStuffStore.FormProductList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <asp:DataList ID="GridProductList" runat="server" RepeatDirection="Vertical">
            <ItemTemplate>
                <div class="">
                    <table style="width: 600px; text-align: left;">
                        <tr>
                            <td>
                                <a href="../Product.aspx?pid=<%# DataBinder.Eval(Container.DataItem, "products_id")%>&catid=<%# this.CategoryID %>">
                                    <img src='<%# DataBinder.Eval(Container.DataItem, "external_url")%>' alt="Product image"
                                        style="width: 130px; height: 120px;" /></a>
                            </td>
                            <td style="text-align: left; width: 450px;">
                                <h3>
                                    <%# DataBinder.Eval(Container.DataItem, "products_name")%></h3>
                                <span style="font-size: 11px; font-style: italic; color: Black;">
                                    <%# DataBinder.Eval(Container.DataItem, "products_short_description")%></span>
                                <br />
                                <br />
                                Manufacturer:
                                <%# DataBinder.Eval(Container.DataItem, "BrandName")%><br />
                                Price: GBP <%# DataBinder.Eval(Container.DataItem, "products_price")%>
                                <a href="../Product.aspx?pid=<%# DataBinder.Eval(Container.DataItem, "products_id")%>&catid=<%# this.CategoryID %>"
                                    style="float: right; font-size: 11px; font-weight: bold; color: Green;">More Details
                                    >></a>
                            </td>
                        </tr>
                    </table>
                </div>
            </ItemTemplate>
        </asp:DataList>
    </div>
</asp:Content>
